package nc.bs.caa.util;

import nc.bs.logging.Level;
import nc.bs.logging.Logger;
import nc.bs.logging.LoggerPlugin;
import nc.bs.logging.LoggerPluginProvider;

public class CaaLoger extends Logger
{
  private static final LoggerPlugin caaLoggerPlugin = LoggerPluginProvider.getInstance().getLoggerPlugin("anonymous");

  public static void error(Object msg, Throwable throwable)
  {
    getLoggerPlugin().log(Level.ERROR, msg, throwable);
  }

  public static void error(Object msg, Throwable throwable, Class caller, String methodName)
  {
    getLoggerPlugin().log(Level.ERROR, msg, throwable, caller, methodName);
  }

  public static void error(Object msg)
  {
    getLoggerPlugin().log(Level.ERROR, msg);
  }

  public static void error(Object msg, Class caller, String methodName)
  {
    getLoggerPlugin().log(Level.ERROR, msg, caller, methodName);
  }

  private static LoggerPlugin getLoggerPlugin()
  {
    return caaLoggerPlugin;
  }
}